/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.stop.manage.service;


import com.hopes.bizz.stop.manage.dto.ClosedDriveStopCarDTO;
import com.hopes.bizz.stop.manage.dto.ClosedDriveStopCarExcelDTO;
import com.hopes.bizz.stop.manage.entity.ClosedDriveStopCarEntity;
import com.hopes.bizz.stop.manage.vo.ClosedDriveStopCarExcelVO;
import com.hopes.boss.common.core.util.R;
import com.hopes.boss.common.service.ExcelService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 园区停车位管理
 *
 * @author pig
 * @date 2024-02-18 15:59:12
 */
public interface ClosedDriveStopCarService extends ExcelService<ClosedDriveStopCarExcelDTO, ClosedDriveStopCarExcelVO, ClosedDriveStopCarEntity> {

    // 新增停车位并更新停车场数量
    @Transactional(rollbackFor = Exception.class)
    void saveAndUpdateStopPark(ClosedDriveStopCarEntity closedDriveStopCar);

    // 删除停车场并更新停车场数量
    @Transactional(rollbackFor = Exception.class)
    R removeBatchByIdsAndUpdatePark(ClosedDriveStopCarDTO closedDriveStopCarDTO);
}
